<template>
  <div>
    <MdEditor :value="value" :handle-change="handleChange" />
  </div>
</template>

<script setup lang="ts">
import { ref } from "vue";
import MdEditor from "@/components/MdEditor.vue"; // @ is an alias to /src

const value = ref("");
const handleChange = (v: string) => {
  value.value = v;
};
</script>
